package com.demo.springcloud.netflix.eureka;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * SpringcloudNetflixEurekaProvider1
 * 
 * @author xiaojianhx
 * @version V1.0.0 $ 2023-11-15 11:22:39 init ---- xiaojianhx
 */
@Controller
public class DemoController {

    @Autowired
    private DemoService service;

    @ResponseBody
    @RequestMapping("/sub")
    public String test(String name) {
        return service.test(name);
    }
}